'''
y=int(input("输入一个年份："))
if y % 4 == 0 and y % 100 !=0 :
  print("%d是闰年" %y)
elif y % 400 == 0 and y % 100 == 0: 
  print("%d是闰年" %y)
else:
  print("%d不是是闰年" %y)
'''
'''
n=input("请输入一个三位数字")
s=list(n)
i_he=0
for i in s:
	 i_he+=int(i)**3
print(f"{n}这是水仙花数") if i_he == int(n) else print(f"{n}这不是水仙花数")
'''
'''
i=int(input("输入一个整数："))
k=0
while  k<=i :
  for j in range(1,i+1):
      print('*'*j)
      j+=1
  else:
      k+=1
  for j in range(1,i+1):
      print(' '*(3-j)+'*'*j)
      j+=1
  else:
      k+=1
  for j in range(1,i+1):
      print('*'*(4-j))
      j+=1
  else:
      k+=1
  for j in range(1,i+1):
      print(' '*(j-1)+'*'*(4-j))
      j+=1
  else:
      k+=1
'''
'''
num=int(input("输入一个整数为了打印正方形："))
for i in range(1,num+1):
   for j in range(1,num+1):
  		print(j,end=" ")
   print()
'''
'''
m=0
n=int(input("请输入一个正整数"))
while  n>0 :
  m+=n
  n=int(input("请输入再次输入正整数，输入负数则结束"))
else:
  print(f"您刚才输入的正整数之和是{m}")
'''
'''
n=int(input("你想输入几组数据"))
l2=[]

for i in range(n):
    s=input("请输入一组字符串：")
#   print("第",n+1,"组数据录入成功")
    l2+=list([s])
for i in range(n):
    print(l2[i]
'''

for i in range(1,21,5):
  for j in range(5):
    print(i,end=" ")
    i+=1
  print()
